package com.service.addressbook.impl;

import com.action.wx.order.AddressVo;
import com.bean.Address_book;
import com.bean.Member;
import com.dao.Address_bookMapper;
import com.dao.MemberMapper;
import com.service.addressbook.AddressBookService;
import com.service.core.AbstractService;
import com.service.member.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/9/10.
 */
@Service
public class AddressBookServiceImpl extends AbstractService<Address_book, Integer> implements AddressBookService {
    @Autowired
    private Address_bookMapper address_bookMapper;

    @Override
    public List<AddressVo> selectByMemberId(Integer mid) {
        return address_bookMapper.selectByMemberId(mid);
    }

    @Override
    public AddressVo selectById(Integer id) {
        return address_bookMapper.selectById(id);
    }

    @Override
    public Address_book selectDefault() {
        return address_bookMapper.selectDefault();
    }
}
